package com.winter.mapper;

import com.winter.model.FinCommentInfo;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FinCommentInfoMapper {
    int deleteByPrimaryKey(Short id);

    int insert(FinCommentInfo record);

    int insertSelective(FinCommentInfo record);

    FinCommentInfo selectByPrimaryKey(Short id);

    int updateByPrimaryKeySelective(FinCommentInfo record);

    int updateByPrimaryKey(FinCommentInfo record);

    List<FinCommentInfo> commentList(@Param("id") Long id, @Param("relaType") Integer relaType, @Param("relaChildType") Integer relaChildType, @Param("commentType") Integer commentType);

    List<FinCommentInfo> commentList_one(@Param("id") Long id, @Param("relaType") Integer relaType, @Param("relaChildType") Integer relaChildType);

    List<FinCommentInfo> childOne(@Param("superId") Long superId);
}